<?php
session_start();//khai bao session
ob_start();//khai bao header
?>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?php
include("kn.php");
$lenh = "select * from khachhang
where user = '".$_SESSION["user"]."'";
$kq = mysql_query($lenh);
$row = mysql_fetch_assoc($kq);
echo "Chào bạn ".$row[Tenkhachhang]." hẹn gặp lại lần sau!";

session_destroy();//huy session
header("refresh:2,url=index.php");//chuyen ve trang index.php sau 2 giay



?>